﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<Pulog.Models.Post>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h3>Category <%=ViewData["CategoryName"] %></h3>

<%--    <%foreach (Pulog.Models.Post p in Model)
      {%>
      <div>
        <div>
            <a href="../Posts/Show/<%=p.postID %>"><%=p.title %></a>
        </div>
        <div>
            发表于: <%=p.pubTime%> | <%=Helper.GetDateDifference(p.pubTime) %>
        </div>
      </div>
      <%} %>--%>
      <%Html.RenderPartial("ListofPosts", Model); %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <title><%=ViewData["CategoryName"] %> - <%=Helper.BlogName %> : <%=Helper.BlogDescription %></title>
</asp:Content>
